package com.byedu.model.enums;

import com.byedu.util.ApiCode;
import com.byedu.util.ApiCodeUtil;

/**
 * Created by weidangwang on 2017/4/23.
 */
public enum QuestionCodeEnum implements ApiCode {
    question_not_found("01001");

    private static ApiCodeUtil util = new ApiCodeUtil("code/QuestionCode");

    private String code;

    QuestionCodeEnum(String code) {
        this.code = code;
    }

    @Override
    public String getApiCode() {
        return this.code;
    }

    @Override
    public String getApiMessage(Object... params) throws ApiCodeException {
        return util.getApiMessage(name(), params);
    }
}
